package lab02.test06;

/**
 * Created by ASUS on 2017/10/14.
 */
public class Tri_lad_cil {
    //属性
          //三角形
    float length1;
    float height1;
    float length2;
    float length3;

         //梯形
    double upper;
    double bottom;
    double height;

         //圆形
    double radius;


    //行为
       //三角形
    float Triangleperimeter(){
        return length1+length2+length3;
    }
    float Trianglearea(){
      return 2*length1*height1;
    }
    float Boolean() {
        if (length1< (length2 + length3)&&length2<(length1+length3)&&length3<(length1+length2))
            return  1;
        else
            return  0;
    }

       //梯形
    double ladderarea(){
        return 1/2*height*(upper+bottom);
    }

         //圆形
    double Cicleperimeter(){
        return 2*3.14*radius;
    }
    double area(){
        return 1/2*3.14*radius*radius;
    }


}
